package 剑指offer;

public class 剑指offer58左旋转字符串 {
    public static void main(String[] args) {
        String s = "abcdefg";
        String s1 = reverseLeftWords(s, 2);
        System.out.println(s1);
    }
    public static String reverseLeftWords(String s, int n) {
        return s.substring(n,s.length())+s.substring(0,n);
    }
}
